package D1105;

public class Test {
    public static void main(String[] args) {
        Square s=new Square();
        s.setX(3);
        System.out.println("正方形的周长是:"+s.getLength(2)+"\t正方形的面积是:"+s.getArea(s.getX()));
        Cirecle c=new Cirecle();
        System.out.println("圆的周长是:"+c.getLength(2)+"\t圆的面积是:"+c.getArea(2));

    }
}
